home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / one_scrs / asm / dixy.asm next >
Encoding:
Assembly Source File  |  1996-05-03  |  1.5 KB  |  53 lines

  1. ;▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  2. ;
  3. ;Full Screen Wobble Effect
  4. ;
  5. ;▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  6.  
  7.         .386p
  8.         .model flat, c
  9.         locals
  10.         .code
  11.  
  12. extrn           sintx          :dword
  13. extrn           texturebuff    :dword
  14. extrn           screenbuff     :dword
  15.  
  16.                 public          dixymainloop
  17.  
  18. dixymainloop:   pushad
  19.                 mov     ecx,screenbuff
  20.                 mov     ebp,texturebuff
  21.                 mov     edi,10
  22. loop0:          mov     esi,10
  23. loop1:          mov     eax,edi
  24.                 mov     ebx,sintx[eax*4]
  25.                 add     ebx,edi
  26.                 mov     eax,esi
  27.                 mov     edx,sintx[eax*4]
  28.                 add     edx,esi
  29.                 mov     eax,ebx
  30.                 shl     eax,6
  31.                 shl     ebx,8
  32.                 add     eax,ebx
  33.                 add     eax,edx
  34.                 mov     bx,[ebp+eax]
  35.                 mov     eax,edi
  36.                 mov     edx,eax
  37.                 shl     eax,6
  38.                 shl     edx,8
  39.                 add     eax,esi
  40.                 add     eax,edx
  41.                 mov     [ecx+eax],bx
  42.                 inc     esi
  43.                 inc     esi
  44.                 cmp     esi,310
  45.                 jb      loop1
  46.                 inc     edi
  47.                 cmp     edi,190
  48.                 jb      loop0
  49.                 popad
  50.                 ret
  51.  
  52.         end
  53.